--
-- Author: shunguo.chen
-- Date: 2019-05-28 11:22:45
--
-- SkillChangeView 竞速副本技能切换界面
--

local SkillPanel = import(".SkillPanel")

local fileName = string.getModeName(...)
local ClassRef = class(fileName, app.mvc.ViewBase)

ClassRef.VIEW_ROOT_RES = Res.SkillChangeScene

function ClassRef:init()
    self._ui.Button_close:addClickEventListener(function()
        self:closeView()
    end)

    self._skillPanel = SkillPanel.create(self._ui.skill)
    self._skillPanel:setShowType(2)
end

function ClassRef:onOperate(cb)
    self.super.onOperate(self, cb)

    self._skillPanel:onOperate(cb)
end

-- specType SpecType 专精
-- skills 专精所有技能
-- selectSkillTeam 选中的skillTeam
function ClassRef:refresh(specType, skills, selectSkillTeam)
    self._skillPanel:refresh(specType, skills, selectSkillTeam)
end

function ClassRef:openMorePanel(skills, sourceSkill, sourceSkillIdx)
    self._skillPanel:openMorePanel(skills, sourceSkill, sourceSkillIdx)
end

return ClassRef
